import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

import App from './App.vue'
import router from './router'

//样式文件
import '@/styles/common.scss'

//懒加载插件
import {lazyPlugin} from "@/directives/index.js";

import {componentPlugin} from "@/components/index.js";

/*import '@/assets/images'*/

const app = createApp(App)

/*//测试接口
getCategory().then(res=>{
    console.log(res)
})*/

app.use(createPinia())
const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)
app.use(pinia)
app.use(router)
app.use(lazyPlugin)
app.use(componentPlugin)
app.mount('#app')
